Auto merge of #5393 - smithsps:master, r=matklad
authorbors <bors@rust-lang.org>
Tue, 24 Apr 2018 14:12:10 +0000 (14:12 +0000)
committerbors <bors@rust-lang.org>
Tue, 24 Apr 2018 14:12:10 +0000 (14:12 +0000)
commit7debd81f03b5a5fb23668ccb95f1fe7cafb01d8b
tree8983a8426b479ecf69626bde8ac04bc845b30ed6
parentac9d5da4f1bd8591bd38e75174bb1be15141f423
parent0b530c30867da26a4b59146f490c9f1d5377c20a
Auto merge of #5393 - smithsps:master, r=matklad

Add target directory parameter --target-dir

Implements: https://github.com/rust-lang/cargo/issues/5308

Adds a target directory parameter, that acts in the same manner as the environment variable `CARGO_TARGET_DIR`, to the following subcommands:
- `bench`
- `build`
- `check`
- `clean`
- `doc`
- `package`
- `publish`
- `run`
- `rustc`
- `rustdoc`
- `test`